package com.fuyao.cloud.personnel.problem.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuyao.cloud.common.core.util.R;
import com.fuyao.cloud.personnel.api.entity.ProblemInfor;
import com.fuyao.cloud.personnel.api.vo.excel.ProblemInforExcelVO;
import com.fuyao.cloud.personnel.api.vo.excel.ProblemInforExportExcelVO;
import org.springframework.validation.BindingResult;

import java.util.List;

/**
 * 问题管理
 *
 * @author pigx code generator
 * @date 2022-04-26 10:13:59
 */
public interface ProblemInforService extends IService<ProblemInfor> {
    /**
     * 获取唯一编码
     * WT+yyyyMMdd+唯一号5位
     * @return
     */
    String getOnlyNum();

    /**
     * 更新状态
     * @return
     */
    R updateStatus(Long id,Integer status);

    R importProblemInfor(List<ProblemInforExcelVO> excelVOList, BindingResult bindingResult);

    List<ProblemInforExportExcelVO> export(QueryWrapper<ProblemInfor> query);
    R batchRemoveInforByIds(List<Long> ids);
}
